<html>
  <head>
    <meta name="layout" content="main"/>
    <title>Simple login page</title>
    <style type="text/css">
      label{
        float:left;
        width:65px;
      }
    </style>
  </head>
  <body>
    <g:if test="${flash.message}">
      <div class="message">
        ${flash.message}
      </div>
    </g:if>
    <g:if test="${session.user}">
      <br/>
      Login as : ${session.user} | <g:link action="logout">Logout</g:link>
    </g:if>
    <g:form action="login" style="padding-left:200px">
      <div style="width:220px">
        <label>Name: </label><input type="text" name="username"/>
        <label>Password: </label><input type="password" name="password"/>
        <label>&nbsp; </label><input type="submit" name="Login"/>
      </div>
    </g:form>
  </body>
</html>